package com.yugao.fintech.draper.admin.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yugao.fintech.draper.admin.entity.SysUserPost;
import com.yugao.fintech.draper.admin.param.UserPostDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface UserPostConvert {

	UserPostConvert INSTANCE = Mappers.getMapper(UserPostConvert.class);

	List<UserPostDTO> convert(List<SysUserPost> list);

	Page<UserPostDTO> convert(Page<SysUserPost> list);

	UserPostDTO convert(SysUserPost userPost);

	SysUserPost convert(UserPostDTO userPost);

}
